﻿using System;

namespace Prototype
{
    public class ConcteteColorPrototype : IColorPrototype
    {
        private int _red, _green, _blue;
        private string _colorName;

        public ConcteteColorPrototype(string colorName)
        {
            this._colorName = colorName;
        }

        public void SetColorName(string colorName)
        {
            this._colorName = colorName;
        }

        public void SetConcteteColorPrototype(int red, int green, int blue)
        {
            this._red = red;
            this._green = green;
            this._blue = blue;
        }

        public IColorPrototype Clone()
        {
            return (IColorPrototype)this.MemberwiseClone();
        }

        public void Display()
        {
            Console.WriteLine("{0}'s RGB Values are: {1},{2},{3}", _colorName, _red, _green, _blue);
        }
    }
}
